home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group98a.txt / 000107_icon-group-sender _Mon Mar 9 07:54:02 1998.msg < prev    next >
Internet Message Format  |  2000-09-20  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
  3.     by baskerville.CS.Arizona.EDU (8.8.7/8.8.7) with SMTP id HAA20990
  4.     for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Mon, 9 Mar 1998 07:54:01 -0700 (MST)
  5. Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
  6.     id AA10395; Mon, 9 Mar 1998 07:53:59 -0700
  7. To: icon-group@optima.CS.Arizona.EDU
  8. Date: Sat, 07 Mar 1998 05:58:37 GMT
  9. From: ghill@waymark.net (Gary Hill)
  10. Message-Id: <3500e0ab.4475385@news.waymark.net>
  11. Organization: All USENET -- http://www.Supernews.com
  12. Sender: icon-group-request@optima.CS.Arizona.EDU
  13. Subject: Memory Use Questions
  14. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  15. Status: RO
  16. Content-Length: 1384
  17.  
  18.  
  19. I have a few questions about Icon memory use and garbage collection.
  20. Perhaps someone more familiar with Icon internals can help? 
  21.  
  22. I am attempting to run a large Icon v9.3 program in a DOS window under
  23. Windows NT 4.0.   Windows NT has a Virtual Memory Manager, which will
  24. allow programs to use more memory than will fit in physical RAM by
  25. swapping the excess to and from a disk file.  Usually this is a good
  26. thing, but when too much virtual memory is allocated to the program it
  27. slows to a crawl because of all the paging.
  28.  
  29. When allocating a new object does Icon perform a garbage collection
  30. before asking NT for more memory, or does it only perform a garbage
  31. collection after asking for memory and being refused ?
  32.  
  33. I've noticed that the amount of memory used by an application under NT
  34. increases but never decreases. Is there a way to return unused memory
  35. back to the system after a garbage collection ? 
  36.  
  37. Also:
  38.  
  39. If you create a list: 
  40.  
  41.     listx := list (0) ;
  42.  
  43. then assign records to it: 
  44.  
  45.      every idx := 1 to 10000 do {
  46.                    a_record :=  record_builder ( x , y , z ) ;
  47.                 put ( listx , a_record ) ;
  48.     } ;
  49.  
  50. then empty the list:  
  51.  
  52.     listx := list (0) ;
  53.  
  54. will the garbage collection process reclaim the space used by the
  55. records if nothing else in the program refers to them? Or will they
  56. remain because they are separate objects from listx?
  57.  
  58. Thanks,
  59. G. Hill
  60.  
  61.  
  62.  
  63.